<?php
/* Smarty version 3.1.30, created on 2017-04-20 14:59:26
  from "D:\phpStudy\WWW\mvc2\Application\Admin\view\newlist.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_58f85c4e75b8f7_15222092',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '78078e89199af28b2e5f02032a8f4233e9264929' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\mvc2\\Application\\Admin\\view\\newlist.html',
      1 => 1492671561,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_58f85c4e75b8f7_15222092 (Smarty_Internal_Template $_smarty_tpl) {
?>
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <?php echo '<script'; ?>
 type="text/javascript" src="./public/js/jquery-3.1.1.min.js"><?php echo '</script'; ?>
>
    </head>
    <body>
        <table border="1">
            <tr>
                <td>编号</td>
                <td>标题</td>
                <td>内容</td>
                <td>添加时间</td>
                <td>操作</td>
            </tr>
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['list']->value, 'v', false, 'k');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['v']->value) {
?>
            <tr id="id">
                <td><?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['v']->value['add_time'];?>
</td>
                <td><a href="./index.php?m=Admin&c=new&a=newupdateSmarty&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" class="update">修改</a>|
                    <a href="javascript:;" class="delect"  name="<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
">删除</a></td>
            </tr>
            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

        </table>
           <a href="index.php?m=Admin&c=new&a=newlist&page=1">首页</a>
           <?php if ($_smarty_tpl->tpl_vars['page']->value > 1) {?>
            <a href="index.php?m=Admin&c=new&a=newlist&page=<?php echo $_smarty_tpl->tpl_vars['page']->value-1;?>
">上一页</a>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['page']->value < $_smarty_tpl->tpl_vars['pagecount']->value) {?>
            <a href="index.php?m=Admin&c=new&a=newlist&page=<?php echo $_smarty_tpl->tpl_vars['page']->value+1;?>
">下一页</a>
            <?php }?>
            <a href="index.php?m=Admin&c=new&a=newlist&page=<?php echo $_smarty_tpl->tpl_vars['pagecount']->value;?>
">尾页</a>
  </body>
</html>
<?php echo '<script'; ?>
 type="text/javascript" src="./public/js/delete.js"><?php echo '</script'; ?>
>

<?php }
}
